package io.renren.modules.efinance.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import io.renren.common.utils.PageUtils;
import io.renren.common.utils.Query;
import io.renren.modules.efinance.dao.BindcardDao;
import io.renren.modules.efinance.entity.BindcardEntity;
import io.renren.modules.efinance.service.BindcardService;
import org.springframework.stereotype.Service;

import java.util.Map;


@Service("bindcardService")
public class BindcardServiceImpl extends ServiceImpl<BindcardDao, BindcardEntity> implements BindcardService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<BindcardEntity> page = this.page(
                new Query<BindcardEntity>().getPage(params),
                new QueryWrapper<BindcardEntity>().eq("account_id",params.get("account_id"))
        );

        return new PageUtils(page);
    }

}